package com.stylefeng.guns.modular.flowers.dao;

import com.stylefeng.guns.common.persistence.model.FlowerType;
import com.stylefeng.guns.common.persistence.model.Flowers;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * flowersDao
 *
 * @author fengshuonan
 * @Date 2019-07-11 15:57:15
 */
public interface FlowersDao {

    /**
     * 花卉列表
     */
    List<Map<String, Object>> showFlowersTable(@Param("condition") String condition);

    int addFlower(Flowers flowers);

    int updateFlower(Flowers flowers);

    /**
     * 根据花卉id查询两表连接结果
     */
    FlowerType selectByType(Integer id);

    FlowerType selFlowerType(Integer fid);

}
